package com.fowo.api.sys.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Transient;

/**
 * 仓库用户授权表(sys_user_permission_warehouse)实体类
 *
 * @author kancy
 * @since 2023-09-20 19:09:53
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("sys_user_permission_warehouse")
public class SysUserPermissionWarehouse extends Model<SysUserPermissionWarehouse> implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * 主键编号
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(title = "主键")
    private Long id;
    @Schema(title = "关联用户编号")
    private Long userId;

    @Schema(title = "属性")
    private String widType;

    @Schema(title = "关联数据编号（可选，不固定关联表）")
    private Long warehouseId;

    @Schema(title = "仓库名称")
    @TableField(exist = false)
    private String name;

    @Schema(title = "是否选中")
    @TableField(exist = false)
    private boolean selected;

}